/**
 * 
 */
package com;

import com.iface.IAlarmGenerator;
import com.iface.ILogProcessor;
import com.iface.ILogReader;
import com.iface.IUserNotifier;
import com.processor.LogProcessor;

/**
 * @author shripad
 *
 */
public class Bahaddur {

	private ILogReader reader;
	private ILogProcessor logProcessor;
	private IAlarmGenerator alarmGenerator;
	private IUserNotifier userNotifier;
	/**
	 * @return the reader
	 */
	public ILogReader getReader() {
		return reader;
	}
	/**
	 * @param reader the reader to set
	 */
	public void setReader(ILogReader reader) {
		this.reader = reader;
	}
	/**
	 * @return the logProcessor
	 */
	public ILogProcessor getLogProcessor() {
		return logProcessor;
	}
	/**
	 * @param logProcessor the logProcessor to set
	 */
	public void setLogProcessor(ILogProcessor logProcessor) {
		this.logProcessor = logProcessor;
	}
	/**
	 * @return the alarmGenerator
	 */
	public IAlarmGenerator getAlarmGenerator() {
		return alarmGenerator;
	}
	/**
	 * @param alarmGenerator the alarmGenerator to set
	 */
	public void setAlarmGenerator(IAlarmGenerator alarmGenerator) {
		this.alarmGenerator = alarmGenerator;
	}
	/**
	 * @return the userNotifier
	 */
	public IUserNotifier getUserNotifier() {
		return userNotifier;
	}
	/**
	 * @param userNotifier the userNotifier to set
	 */
	public void setUserNotifier(IUserNotifier userNotifier) {
		this.userNotifier = userNotifier;
	}
	public void monitorLog() {
		// TODO Auto-generated method stub
		getLogProcessor().setBahaddur(this);
		getReader().readLog(logProcessor);
		//String processedLog = getLogProcessor().processLog(logChunk);
		//getAlarmGenerator().generateAlarm(processedLog);
		
	}
	
	
}
